package com.zhuozhou.jdyc.main.user.bean;

import androidx.databinding.BaseObservable;

import java.io.Serializable;
import java.util.List;

public class UserInfo extends BaseObservable implements Serializable {
	private static final long serialVersionUID = 5501855928594382883L;

	/**
	 * code : 200
	 * msg : 登录成功
	 * nav : [{"user_id":512,"nickname":"h5注册用户","avatar":"https://yuncang.dzsmxx.com/uploads/images/h5headerimg.png"}]
	 * token : e67764a8e91c0147f1def84614b791caaca6987
	 */

	private int code;
	private String msg;
	private String token;
	private List<NavBean> nav;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public List<NavBean> getNav() {
		return nav;
	}

	public void setNav(List<NavBean> nav) {
		this.nav = nav;
	}

	public static class NavBean {
		/**
		 * user_id : 512
		 * nickname : h5注册用户
		 * avatar : https://yuncang.dzsmxx.com/uploads/images/h5headerimg.png
		 */

		private int user_id;
		private String nickname;
		private String avatar;

		public int getUser_id() {
			return user_id;
		}

		public void setUser_id(int user_id) {
			this.user_id = user_id;
		}

		public String getNickname() {
			return nickname;
		}

		public void setNickname(String nickname) {
			this.nickname = nickname;
		}

		public String getAvatar() {
			return avatar;
		}

		public void setAvatar(String avatar) {
			this.avatar = avatar;
		}
	}
}

